//
//  XCMyProjectCell.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/23.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCMyProjectCell.h"
#import "UIImageView+WebCache.h"
@implementation XCMyProjectCell

- (void)dealloc {
    [_imageViewProject release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewProject = [[UIImageView alloc] initWithFrame:CGRectZero];
        [self.contentView addSubview:self.imageViewProject];
        [_imageViewProject release];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.imageViewProject.frame = self.bounds;
}
- (void)setMyProjectModel:(XCMyProjectModel *)myProjectModel {
    if (_myProjectModel != myProjectModel) {
        [_myProjectModel release];
        _myProjectModel = [myProjectModel retain];
    }
    
    [self.imageViewProject sd_setImageWithURL:[NSURL URLWithString:myProjectModel.picUrl] placeholderImage:[UIImage imageNamed:@"Image-p"]];
    
    
    
}
@end
